{% load crispy_forms_utils %}

{% comment %}

NOTE that this template is cached due to `crispy` tag uses `lru_cache`.
We need to restart Django server to display the changes.

{% endcomment %}

{% specialspaceless %}

{% if form_tag %}
    <form {{ flat_attrs }} method="{{ form_method }}" {% if form.is_multipart %} enctype="multipart/form-data"{% endif %}>
{% endif %}

{% if form_method|lower == 'post' and not disable_csrf %}
    {% csrf_token %}
{% endif %}

{% include "./display_form.html" %}

{% include "./inputs.html" %}

{% if form_tag %}
    </form>
{% endif %}


{% endspecialspaceless %}
